package com.zhijian.medical.service;


import com.zhijian.medical.entity.po.DigitalSliceCaseDifferentialDiagnosis;
import com.zhijian.medical.entity.vo.request.DigitalSliceCaseDifferentialDiagnosisSearchVo;
import com.zhijian.medical.entity.vo.response.DigitalSliceCaseDifferentialDiagnosisVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 数字切片-病例-鉴别诊断关联 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2023-01-04 21:26:38
 */
public interface DigitalSliceCaseDifferentialDiagnosisService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    DigitalSliceCaseDifferentialDiagnosis selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    DigitalSliceCaseDifferentialDiagnosisVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param digitalSliceCaseDifferentialDiagnosis
     * @return
     */
    Long insert(DigitalSliceCaseDifferentialDiagnosis digitalSliceCaseDifferentialDiagnosis);

    /**
     * 保存全部
     *
     * @param digitalSliceCaseDifferentialDiagnosis
     * @return
     */
    List<DigitalSliceCaseDifferentialDiagnosisVo> saveAll(DigitalSliceCaseDifferentialDiagnosis digitalSliceCaseDifferentialDiagnosis);

    /**
     * 更改
     *
     * @param digitalSliceCaseDifferentialDiagnosis
     * @return
     */
    boolean update(DigitalSliceCaseDifferentialDiagnosis digitalSliceCaseDifferentialDiagnosis);

    /**
     * 动态修改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(DigitalSliceCaseDifferentialDiagnosis record);

    /**
     * 总数
     *
     * @param digitalSliceCaseDifferentialDiagnosisSearchVo
     * @return
     */
    Integer count(DigitalSliceCaseDifferentialDiagnosisSearchVo digitalSliceCaseDifferentialDiagnosisSearchVo);

    /**
     * 列表
     *
     * @param digitalSliceCaseDifferentialDiagnosisSearchVo
     * @return
     */
    List<DigitalSliceCaseDifferentialDiagnosisVo> selectList(DigitalSliceCaseDifferentialDiagnosisSearchVo digitalSliceCaseDifferentialDiagnosisSearchVo);

    /**
     * 分页查询
     *
     * @param digitalSliceCaseDifferentialDiagnosisSearchVo
     * @return
     */
    Page<DigitalSliceCaseDifferentialDiagnosisVo> selectPage(DigitalSliceCaseDifferentialDiagnosisSearchVo digitalSliceCaseDifferentialDiagnosisSearchVo);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities 实例对象列表
     * @return 影响行数
     */
    boolean insertBatch(List<DigitalSliceCaseDifferentialDiagnosis> entities);
}